TakeUntilLifecycle class¶
Defined in
Namespace: ReactiveUI.Primitives.Async.Advanced
Assembly: ReactiveUI.Primitives.Async.Core.dll
Full name: ReactiveUI.Primitives.Async.Advanced.TakeUntilLifecycle<T>
Modifiers: public sealed
Summary¶
Shared subscription lifecycle for the TakeUntil family of operators (CancellationToken / Task /
raw-signal / async-observable / async-predicate variants). Each per-trigger Subscription
composes one instance of this class (has-a, not is-a) and forwards forward-on-next / -error /
-completed plus external-cancellation linking into it, so the previously-duplicated
infrastructure (gate, dispose CTS, external-link registration, gated observer fan-out) lives
in one place.
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481
Class hierarchy
classDiagram
class TakeUntilLifecycle~T~
class IAsyncDisposable {
<>
}
IAsyncDisposable <|.. TakeUntilLifecycle~T~
Implements: IAsyncDisposable
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [TakeUntilLifecycle](# class. |
Properties¶
| Name | Summary |
|---|---|
| DisposeToken | Gets the cached cancellation token that fires on subscription disposal. |
Methods¶
| Name | Summary |
|---|---|
| LinkExternalCancellation | Links the original subscribe-time cancellation token into this subscription's dispose chain so per-emission methods can use... |
| RelayNextAsync | Forwards a value to the downstream observer under the serialization gate. |
| RelayErrorAsync | Forwards a non-terminal error to the downstream observer under the serialization gate. |
| RelayCompletionAsync | Forwards the completion signal to the downstream observer under the serialization gate. |
| DisposeAsync | Tears down the shared subscription state: cancels the dispose CTS, releases the external-link registration, disposes the gate. The owning Subscription is responsible for disposing its ... |